<?php
    require "../../class/crop.class.php";
    include "../../function/functionPHP.php";
    $cropObj=new crop($_GET["cropID"]);
    $crop=$cropObj->getCrop();
    
    $cropObj->delCrop();
    
    header("location:../../?page=member/crop/cropList&farmID=".$crop["farmID"]);